package sapling.util;

import java.util.Timer;
import java.util.TimerTask;

public class Test {

	public static int count = 3;
	public static void main(String[] args) {
		new Test();
		final Timer timer = new Timer();
		TimerTask task = new TimerTask() {
			@Override
			public void run() {
				System.out.println("" + count);
				count--;
				if (count < 1) {
					timer.cancel();
				}
			}
		};
		timer.schedule(task, 0, 1000);
	}
}
